package com.xd.core.finance.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 收益账户页面查询回款管理返回vo
 * </p>
 *
 * @author ZCH
 * @since 2025-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AdvancePaymentRecordVo {


    @ApiModelProperty(value = "订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    @ExcelProperty(value = "订单创建时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "交易时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    @ExcelProperty(value = "交易时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date tradeTime;

    @ApiModelProperty(value = "回款交易订单号")
    @ExcelProperty(value = "交易单号")
    private String orderNo;

    @ApiModelProperty(value = "投保机构名称")
    @ExcelProperty(value = "投保机构名称")
    private String insuranceCompanyName;

    @ApiModelProperty(value = "借款合同编号")
    @ExcelProperty(value = "借款合同编号")
    private String contractNo;

    @ApiModelProperty(value = "交易金额(单位元)")
    @ExcelProperty(value = "交易金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "服务费(单位元)")
    @ExcelProperty(value = "服务费")
    private BigDecimal collectionAmount;

    @ApiModelProperty(value = "预付方式 0:银行转账 1:平台代扣")
    @ExcelIgnore
    private String type;

    @ApiModelProperty(value = "预付方式 0:银行转账 1:平台代扣")
    @ExcelProperty(value = "预付方式")
    private String typeRemark;

    @ApiModelProperty(value = "交易状态（1-申请中，2-交易成功，3-交易失败）")
    @ExcelIgnore
    private String status;

    @ApiModelProperty(value = "交易状态（1-交易中，2-交易成功，3-交易失败）")
    @ExcelProperty(value = "交易状态")
    private String statusRemark;

    @ApiModelProperty(value = "还款方账户名")
    @ExcelProperty(value = "还款方账户名")
    private String repayName;

    @ApiModelProperty(value = "还款方账户号")
    @ExcelProperty(value = "还款方账户号")
    private String repayAccount;

    @ApiModelProperty(value = "预付款凭证")
    @ExcelIgnore
    private String voucher;

    @ApiModelProperty(value = "失败原因")
    @ExcelProperty(value = "失败原因")
    private String failCause;
}
